package com.may.ipersistence.io;

import java.io.InputStream;

/**
 * @program: lagou
 * @description:
 * @author: Bobby.Ma
 * @create: 2020-10-31 14:23
 **/
public class Resource {
    //将配置文件加载成字节输入流，存储在内存
    public static InputStream getResourceAsStream(String path){
        return Resource.class.getClassLoader().getResourceAsStream(path);
    }
}
